using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Responses.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Responses
{
	public static class VipDiscountsExtend
{
		public static ResponseVipDiscountsDto ToResponseDto(this VipDiscounts entity)
{			return new ResponseVipDiscountsDto
			{
				id = entity.VdId,
				VIPId = entity.VdVipId,
				discountId = entity.VdDiscountId,
				count = entity.VdCount,
				effectiveDay = entity.VdEffectiveDay,
				createTime = entity.VdCreateTime,
			};
		}
	}
}
